package com.online.onlinestudent.entity;


import com.baomidou.mybatisplus.annotation.*;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;


@NoArgsConstructor
@AllArgsConstructor
@TableName("student_learning_records")
@Data
public class Record {
    @TableId(value = "id", type =  IdType.AUTO)
    private Long id;
    private Long studentId;
    private Long courseId;
    private LocalDateTime startTime;
    private LocalDateTime endTime;
    private Double progress;
    private Integer status;
    // 创建时间，插入时自动填充
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createdAt;
    // 更新时间，插入和更新时自动填充
    //@TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updatedAt;


}
